﻿using BCCommon.Extensions;
using BCCommon.TMS.Insured;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCDto.TMS.TrainingSite.TrainingSiteBusinessHours
{
    /// <summary>
    /// 培训点营业时间
    /// </summary>
    public class TrainingSiteBusinessHoursDto
    {
        /// <summary>
        /// 培训点营业时间配置Id
        /// </summary>
        public long TrainingSiteBusinessHoursId { get; set; }

        /// <summary>
        /// 培训点配置ID
        /// </summary>
        public long TrainingSiteConfigId { get; set; }

        /// <summary>
        /// 代理商记录Id
        /// </summary>
        public long AgentRecordId { get; set; }

        /// <summary>
        /// 营业日
        /// </summary>
        public WeekType BusinessDay { get; set; }

        /// <summary>
        /// 营业日描述
        /// </summary>
        public string BusinessDayStr { get { return this.BusinessDay.GetDescriptionString(); } }

        /// <summary>
        /// 开始小时
        /// </summary>
        public int? StartHour { get; set; }

        /// <summary>
        /// 开始分钟
        /// </summary>
        public int? StartMinute { get; set; }

        /// <summary>
        /// 结束小时
        /// </summary>
        public int? EndHour { get; set; }

        /// <summary>
        /// 结束分钟
        /// </summary>
        public int? EndMinute { get; set; }

        /// <summary>
        /// 是否营业
        /// </summary>
        public uint IsBusiness { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }
    }
}
